gdkdisplay-win32.c: Don't retry WGL initialization
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Sep 2021 09:08:23 +0000 (17:08 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 22 Sep 2021 03:09:02 +0000 (11:09 +0800)
commitece02317b9268d407609826427a7e2d885c37a6b
treef85834e91cbea56855c63291c264a318110a76d0
parent218a3e3d010a1705372f1b2360ea57c51384e5ba
gdkdisplay-win32.c: Don't retry WGL initialization

On Windows, GLES is not that widely available unless one installs wrapper
libraries such as libANGLE, so GLES/EGL support on Windows is used more like
a fallback mode if Desktop OpenGL (WGL) support is inadequate on the system.

Hence, unless one forces WGL or EGL, we will first try to initialize WGL, and
then try to initialize GLES if enabled and if WGL initialization failed, and
then just return whatever the last result we can obtain from these
initialization attempts, since unlike X11 EGL contexts, we do not have
separate modes for WGL except for legacy and non-legacy contexts.
gdk/win32/gdkdisplay-win32.c